# 作者: 王道 龙哥
# 2024年02月20日15时30分20秒
# xxx@qq.com

demo_list = [1, 2, 3]
print(demo_list)
print('demo_list id %x' % id(demo_list))
demo_list.append(999)
print(demo_list)
print('改变内容后 demo_list id %x' % id(demo_list))

demo_list = [2, 3, 4]
print('又赋值了 demo_list id %x' % id(demo_list))

print('-' * 50)
demo_dict = {"name": "小明"}
print(demo_dict)
print("定义字典后的内存地址 %d" % id(demo_dict))

demo_dict["name"] = "老王"
print(demo_dict)
print("修改数据后的内存地址 %d" % id(demo_dict))
